package com.abst;

public class Company implements Money {
    private double totalSarary = 1000000;


    @Override
    public void pay(Employee employee) {
        totalSarary -= employee.getSarary();
        System.out.println("给" + employee.getName() + "发工资 " + employee.getSarary() + "，公司剩余" + totalSarary);
    }
}
